package cs2340.todolist.model;

import java.util.Date;




public class ToDoItem {
	
	private long id;
	private String title;
	private String type;
	private Date dueDate;
	private Location location;
	private String recurType;
	private String description;
	private boolean completed;
	
	public ToDoItem(long id, String title, Location location, String type, Date dueDate, String recurType, String description) {
		this.setId(id);
		this.title = title;
		this.type = type;
		this.dueDate = dueDate;
		this.recurType = recurType;
		this.description = description;
		this.completed = false;
		this.location = location;
	}
	
	public ToDoItem(long id, String title, Location location, String type, Date dueDate, String recurType, String description, boolean completed) {
		this(id, title, location, type, dueDate, recurType, description);
		this.setCompleted(completed);
	}
	
	//getters and setters
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public Date getDueDate() {
		return dueDate;
	}
	public void setDueDate(Date endDate) {
		this.dueDate = endDate;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public String getRecurType() {
		return recurType;
	}

	public void setRecurType(String recurType) {
		this.recurType = recurType;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	public boolean getCompleted(){
		return completed;
	}
	public void setCompleted(boolean status){
		this.completed = status;
	}
	
}
